package com.jdk.study.d2jvm.chapter05;

/**
 * @description:
 * @author: JackLi
 * @date: 2020/4/12 20:03
 */
public class Stack07_OperandStackTest {

    public void testAddOperation() {
        // byte、short、char、boolean：都是以 int 类型来保存
        byte i = 15;
        int j = 8;
        int k = i + j;

//        int m = 8;
    }

    public int getSum() {
        int m = 10;
        int n = 20;
        int k = m + n;
        return k;
    }

    public void testGetSum() {
        // 获取上一个栈帧返回的结果，并保存在操作数栈中。
        int i = getSum();
        int j = 10;
    }

}
